<?php 

namespace frontend\models;

use yii\db\ActiveRecord;

class Recruit_user extends ActiveRecord
{  
	public $qr;
	public $verifyCode;
    //规则
    public function rules()
    {
        return [
            [['username', 'password', 'sex', 'birth', 'card', 'tel', 'email'], 'required'],
            //头像上传
            [['imageFile'], 'file', 'skipOnEmpty' => false, 'extensions' => 'png, jpg'],
            //验证码
            ['verifyCode', 'required'],
            ['verifyCode', 'captcha'],
             //确认密码
            ['qr', 'required'],
            ['qr', 'compare', 'compareAttribute'=>'password'],
        ];
    }

  
}
 ?>
 